package com.yykj.hospital.server.model.repository.form.template;

import com.yykj.hospital.server.model.entity.form.template.FormTrainType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FormTrainTypeRepository extends JpaRepository<FormTrainType,Integer> {

    List<FormTrainType> findAllByHospitalIdOrderBySorting(Integer hospitalId);

    FormTrainType findFirstByHospitalIdAndName(Integer hospitalId,String name);

}
